# encoding = utf-8
module DealsHelper
  def deal_status(status)
    if status == DEAL_STATUS_WP
      '等待线上付款'
    elsif status == DEAL_STATUS_WT
      '等待发送'
    elsif status == DEAL_STATUS_DL
      '已经出发'
    elsif status == DEAL_STATUS_DA
      '已过期'
    elsif status == DEAL_STATUS_OV
      '交易成功'
    end
  end

  def deal_kind(kind)
    if kind == DEAL_KIND_OLP
      '在线支付'
    elsif kind == DEAL_KIND_COD
      '货到付款'
    end
  end
end
